package cn.com.cym.gamezao.base;

import lombok.Data;
import org.springframework.data.domain.Sort;

import javax.persistence.Transient;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;
import java.util.List;

@Data
public class BaseSearchDto implements Serializable {
    private static final long serialVersionUID = 3281962710841896475L;

    /**
     * 单页条数
     */
    @Min(value = 5L)
    @Max(value = 100L)
    Integer pageSize;

    /**
     * 总数
     */
    //Long totalCount;


    /**
     * 当前页
     */
    @Min(value = 1L)
    Integer current;


    /**
     * 升降序号
     */
    Sort.Direction sort=Sort.Direction.ASC;


    /**
     * 排序条件
     */
    @Transient
    List<String> sortBy;
}
